﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AppManagment/iFrameMasterPage.master" AutoEventWireup="true" CodeFile="iFarmeDictionary_AdressPrograms.aspx.cs" Inherits="iFarmeDictionary_AdressPrograms" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" Runat="Server">
<table style="width: 100%;">
    <tr>
        <td style ="width :235px">
            <asp:TextBox ID="txtSearch" runat="server" Text =<%# GetWhereTxt() %>   CssClass="TextBox"></asp:TextBox>
        </td>
        <td>
            <asp:ImageButton ID=btnFind runat="server"  
                ImageUrl="~/images/search_button.gif" onclick="ImageButton1_Click" 
                ToolTip="Поиск"/>
        </td>
        
        <td style ="text-align :right ">        
        <asp:Button ID=btnnew runat="server" Text="Добавить" CssClass ="btn"   OnClick ="AddButton_Click"  />
            
        </td>
    </tr>
    
</table>  
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" Runat="Server">
     <asp:GridView ID="grdEmployeers" runat="server" 
            AutoGenerateColumns="False" GridLines="None" 
            Width="99%" 
            AllowPaging="True" AllowSorting="True" 
         onsorting="grdEmployeers_Sorting" onrowcommand="grdEmployeers_RowCommand" 
            >
            <Columns>
                <asp:TemplateField HeaderText=""   ItemStyle-Width="20px">
                    <ItemTemplate>
                        <asp:Button ID="BtnEditProramm" OnClick ="BtnEdit_Click" runat="server" CssClass="btn" 
                            Text="Редактировать" CommandArgument =<%# Bind("ID") %>   />
                    </ItemTemplate>
                    <ItemStyle Width="20px" />
                </asp:TemplateField>                
                <asp:BoundField DataField="Name"   HeaderText ="Наименование" SortExpression ="Name" />
                
                
            </Columns>
            <RowStyle CssClass="row1" HorizontalAlign="Left" />
            <HeaderStyle  HorizontalAlign="Left" />
        </asp:GridView>
</asp:Content>



